﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OVS_FrontOffice
{
    public class StringToForegroundConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value.ToString().StartsWith("Error"))
                return "Red";
            else
                return "DarkGray";
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
